package com.bw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.bean.SysPermission;
import com.bw.bean.SysUser;
import com.bw.dao.SysDao;
import com.bw.dao.SysPermissionDao;
import com.bw.service.SysService;


@Service("sysService")
public class SysServiceIMpl implements SysService {
	
	@Autowired
	private SysDao dao;
	
	@Autowired
	private SysPermissionDao pdao;
	

	public SysUser findSysuserByUsercode(String usercode) {
		// TODO Auto-generated method stub
		return dao.findSysuserByUsercode(usercode);
	}

	public List<SysPermission> findMenuList(Integer tid) {
		// TODO Auto-generated method stub
		return pdao.findMenuList(tid);
	}

	public List<SysPermission> findSysPermissionList(Integer tid) {
		// TODO Auto-generated method stub
		return pdao.findSysPermissionList(tid);
	}
	
	

	
	
	

	
	
	

}
